package com.ztom.beans.factory.support.registry

/**
 * 单例 bean 注册表
 *
 * @author ZhangTao
 */
interface SingletonBeanRegistry {

    /**
     * 根据 beanName 从单例表获取 bean
     *
     * @return bean
     */
    fun getSingleton(beanName: String): Any?

    /**
     * 注册单例 bean
     */
    fun addSingleton(beanName: String, singletonBean: Any)
}